import axios from 'axios'
let base = 'http://192.168.0.120/git-bt/bt/public/index.php'
export default {
	post(api, params = {}) {
		return new Promise((resolve, reject) => {
		  let apiUrl = `${base}${api}`
		  axios.post(apiUrl, params).then((response) => {
			resolve(response.data)
		  })
		})
  }
}